package ltd.order.cloud.newbee.openfeign;

import ltd.common.newbee.cloud.entity.NewBeeGoodsInfo;
import ltd.common.newbee.cloud.param.ComplexObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "newbee-cloud-goods-service", path = "/goods")
public interface NewBeeGoodsDemoService {

    @PutMapping(value="/{goodsId}")
    Boolean deStock(@PathVariable(value="goodsId") int goodsId);
}
